import { createRouter, createWebHashHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const routes = [
  {
    path: '/',
    name: 'home',
    meta:{
      title:"EasyChatUI - 首页"
    },
    component: HomeView
  },
  {
    path: '/knowledge',
    name: 'knowledge',
    meta:{
      title:"EasyChatUI - 知识库管理"
    },
    component: () => import('@/views/KnowledgeView.vue')
  },    
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
